tle.framework.component.impl.ra
Class DefaultRequestAnalyzer

java.lang.Object
  extended bytle.framework.component.impl.ComponentBase
      extended bytle.framework.component.impl.ra.DefaultRequestAnalyzer
All Implemented Interfaces:
Component, ComponentMBean, DefaultRequestAnalyzerMBean, RequestAnalyzer

public class DefaultRequestAnalyzer
extends ComponentBase
implements RequestAnalyzer, DefaultRequestAnalyzerMBean

¸í·É¾î ID´Â ¿äû URI·ÎºÎÅÍ ÃßÃâÇÑ´Ù.

¾÷·ÎµåÇÑ ÆÄÀÏÀÇ °æ¿ì´Â Jakarta-CommonsÀÇ FileUpload API¸¦ »ç¿ëÇØ¼­ ó¸®ÇÑ´Ù.

TLEFrameworkÀÇ Ãʱ⠼³Á¤ ÆÄÀÏÀÇ "configFile" ÃʱâÈ­ ÆÄ¶ó¹ÌÅÍ·Î ¸í½ÃÇÑ ÆÄÀϷκÎÅÍ Ãʱ⠼³Á¤ Á¤º¸¸¦ Àоî¿Â´Ù. ¸¸¾à "configFile" ÃʱâÈ­ ÇÁ·ÎÆÛƼ¸¦ ¸í½ÃÇÏÁö ¾Ê¾ÒÀ» °æ¿ì¿¡´Â »ç¿ëÀÚ È¨ µð·ºÅ丮ÀÇ "DefaultRequestAnalyzer.properties" ÆÄÀÏÀ» »ç¿ëÇÑ´Ù.

Ãʱ⠼³Á¤ ÆÄÀÏÀÌ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì ÃʱⰪÀ» ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÑ´Ù.

Since:
2.0
Author:
ÃÖ¹ü±Õ

Field Summary
 
Fields inherited from class tle.framework.component.impl.ComponentBase
componentState, config
 
Constructor Summary
DefaultRequestAnalyzer()
           
 
Method Summary
 RequestInfo analyzeRequest(HttpServletRequest request, HttpServletResponse response)
          Jakarta Commons FileUpload APIÀÇ FileUpload.isMultipartContent(request)¸¦ ½ÇÇàÇÏ¿© ÀÎÄÚµù ŸÀÔÀÌ multipart/form-data À̸é FileUpload API¸¦ ÅëÇØ¼­ RequestInfo ÀνºÅϽº¸¦ »ý¼ºÇÑ´Ù.
 java.lang.String getEncoding()
          ¾÷·Îµå µ¥ÀÌÅÍÀÇ ÀÎÄÚµùÀ» ±¸ÇÑ´Ù.
 long getMax()
          ¾÷·Îµå ÆÄÀÏÀÇ ÃÖ´ë Å©±â¸¦ ±¸ÇÑ´Ù.
 java.lang.String getTempDir()
          DefaultRequestAnalyzer°¡ »ç¿ëÇÏ´Â Àӽà Æú´õ¸¦ ±¸ÇÑ´Ù.
protected  void initing(ComponentConfig config)
          DefaultRequestAnalyzer°¡ ÇÊ¿ä·Î ÇÏ´Â Á¤º¸¸¦ Ãʱ⠼³Á¤ Á¤º¸·ÎºÎÅÍ ±¸ÇÑ´Ù.
 void setEncoding(java.lang.String encoding)
          ¾÷·Îµå µ¥ÀÌÅÍÀÇ ÀÎÄÚµùÀ» ÁöÁ¤ÇÑ´Ù.
 void setMax(long max)
          ¾÷·Îµå ÆÄÀÏÀÇ ÃÖ´ë Å©±â¸¦ ÁöÁ¤ÇÑ´Ù.
 void setTempDir(java.lang.String tempDir)
          DefaultRequestAnalyzer°¡ »ç¿ëÇÏ´Â Àӽà Æú´õ¸¦ ÁöÁ¤ÇÑ´Ù.
 
Methods inherited from class tle.framework.component.impl.ComponentBase
close, closing, getDescription, getID, getState, init, isClosed, isClosing, isCreated, isErrorOccured, isInited, isIniting, isResuming, isRunning, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, resuming, start, starting, stop, stopping, suspend, suspending
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tle.framework.component.Component
close, getID, init, isClosed, isClosing, isCreated, isErrorOccured, isInited, isIniting, isResuming, isRunning, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, start, stop, suspend
 
Methods inherited from interface tle.framework.component.ComponentMBean
getDescription, getID, getState
 

Constructor Detail

DefaultRequestAnalyzer

public DefaultRequestAnalyzer()
Method Detail

initing

protected void initing(ComponentConfig config)
                throws ComponentException
DefaultRequestAnalyzer°¡ ÇÊ¿ä·Î ÇÏ´Â Á¤º¸¸¦ Ãʱ⠼³Á¤ Á¤º¸·ÎºÎÅÍ ±¸ÇÑ´Ù.

Overrides:
initing in class ComponentBase
Parameters:
config - ÄÄÆ÷³ÍÆ® ÃʱâÈ­ ¼³Á¤ Á¤º¸¸¦ ´ã°í ÀÖ´Â °´Ã¼
Throws:
ComponentException
See Also:
ComponentBase.initing(tle.framework.component.ComponentConfig)

analyzeRequest

public RequestInfo analyzeRequest(HttpServletRequest request,
                                  HttpServletResponse response)
                           throws RequestAnalyzerException
Jakarta Commons FileUpload APIÀÇ FileUpload.isMultipartContent(request)¸¦ ½ÇÇàÇÏ¿© ÀÎÄÚµù ŸÀÔÀÌ multipart/form-data À̸é FileUpload API¸¦ ÅëÇØ¼­ RequestInfo ÀνºÅϽº¸¦ »ý¼ºÇÑ´Ù.

ÄÜÅØ½ºÆ® ºÎºÐÀÇ °æ·Î¸¦ Á¦¿ÜÇÑ ³ª¸ÓÁö ºÎºÐÀ» ¸í·É¾î ID·Î »ç¿ëÇÑ´Ù.

Specified by:
analyzeRequest in interface RequestAnalyzer
Parameters:
request - HTTP ¿äû
Returns:
RequestInfo
Throws:
RequestAnalyzerException - ¿äû ºÐ¼®¿¡ ¹®Á¦°¡ ÀÖÀ» °æ¿ì¿¡ ¹ß»ýÇÑ´Ù.
See Also:
tle.framework.component.spi.ra.RequestAnalyzer#analyzeRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

getTempDir

public java.lang.String getTempDir()
Description copied from interface: DefaultRequestAnalyzerMBean
DefaultRequestAnalyzer°¡ »ç¿ëÇÏ´Â Àӽà Æú´õ¸¦ ±¸ÇÑ´Ù.

Specified by:
getTempDir in interface DefaultRequestAnalyzerMBean
Returns:

setTempDir

public void setTempDir(java.lang.String tempDir)
Description copied from interface: DefaultRequestAnalyzerMBean
DefaultRequestAnalyzer°¡ »ç¿ëÇÏ´Â Àӽà Æú´õ¸¦ ÁöÁ¤ÇÑ´Ù.

Specified by:
setTempDir in interface DefaultRequestAnalyzerMBean
Parameters:
tempDir - Àӽà Æú´õÀÇ °æ·Î

getMax

public long getMax()
Description copied from interface: DefaultRequestAnalyzerMBean
¾÷·Îµå ÆÄÀÏÀÇ ÃÖ´ë Å©±â¸¦ ±¸ÇÑ´Ù.

Specified by:
getMax in interface DefaultRequestAnalyzerMBean
Returns:

setMax

public void setMax(long max)
Description copied from interface: DefaultRequestAnalyzerMBean
¾÷·Îµå ÆÄÀÏÀÇ ÃÖ´ë Å©±â¸¦ ÁöÁ¤ÇÑ´Ù.

Specified by:
setMax in interface DefaultRequestAnalyzerMBean
Parameters:
max -

getEncoding

public java.lang.String getEncoding()
Description copied from interface: DefaultRequestAnalyzerMBean
¾÷·Îµå µ¥ÀÌÅÍÀÇ ÀÎÄÚµùÀ» ±¸ÇÑ´Ù.

Specified by:
getEncoding in interface DefaultRequestAnalyzerMBean
Returns:

setEncoding

public void setEncoding(java.lang.String encoding)
Description copied from interface: DefaultRequestAnalyzerMBean
¾÷·Îµå µ¥ÀÌÅÍÀÇ ÀÎÄÚµùÀ» ÁöÁ¤ÇÑ´Ù.

Specified by:
setEncoding in interface DefaultRequestAnalyzerMBean
Parameters:
encoding -