Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.util
Interface PortResolver  view PortResolver download PortResolver.java

All Known Implementing Classes:
PortResolverImpl

public interface PortResolver

A PortResolver determines the port a web request was received on.

This interface is necessary because ServletRequest.getServerPort() may not return the correct port in certain circumstances. For example, if the browser does not construct the URL correctly after a redirect.

Version:
$Id: PortResolver.java,v 1.2 2005/11/17 00:56:09 benalex Exp $

Method Summary
 int getServerPort(javax.servlet.ServletRequest request)
          Indicates the port the ServletRequest was received on.
 

Method Detail

getServerPort

public int getServerPort(javax.servlet.ServletRequest request)
Indicates the port the ServletRequest was received on.